package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.CarPackageAudit;
import cn.wolfcode.car.business.qo.CarPackageAuditQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CarPackageAuditMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CarPackageAudit record);

    CarPackageAudit selectByPrimaryKey(Long id);

    List<CarPackageAudit> selectAll();

    int updateByPrimaryKey(CarPackageAudit record);

    List<CarPackageAudit> selectForList(CarPackageAuditQuery qo);

    void updateById(CarPackageAudit carPackageAudit);

    void updateByStatus(@Param("statusCancel") Integer statusCancel, @Param("id") Long id);

    void updateByStatusByATime(@Param("id") Long id, @Param("statusReject") Integer statusReject, @Param("date") Date date);
}